import logging,yamail


def log():
    logging.basicConfig(filemode='a+', level=logging.DEBUG, filename='log1.txt', format=
    '%(funcName)s''%(asctime)s''%(message)s')


def youjian(ff):
    email = yamail.SMTP(user='1802174235@qq.com', password='bwdrxgxoojqxcdfd', host='smtp.qq.com')
    email.send(to='3389286256@qq.com', subject='1', contents='1',attachments=ff)
